/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fhv.itb.ec.fruitshop;

import java.io.Serializable;
import javax.persistence.Entity;

/**
 *
 * @author Malcolm
 */
@Entity
public class Pear extends Fruit implements Serializable {
    private static final long serialVersionUID = 1L;


    public Pear() {

    }

    public Pear(Fruit f) {
        super(f);
    }



    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Pear)) {
            return false;
        }
        Pear other = (Pear) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "fhv.itb.ec.fruitshop.Pear[id=" + id + "]";
    }

}
